<cfoutput>
	<fieldset>
		<legend>Categories</legend>
		<button name="button" type="button" id="toggleCatSubCat">Toggle Visibility</button>
		<fieldset>
			<legend>Select Category/SubCategory</legend>
			<ul id="cat-subcat" class="filetree">
				<cfloop from="1" to="#ArrayLen( Request.smugCategoriesTree )#" index="categoryIndex">
					<li class="closed">
						<span class="folder">
							<input type="radio" name="catid_subcatid" id="#Request.smugCategoriesTree[categoryIndex].CategoryID#-0" value="#Request.smugCategoriesTree[categoryIndex].CategoryID#-0">
							#Request.smugCategoriesTree[categoryIndex].CategoryName#
						</span>
						<ul>
							<cfif StructKeyExists( Request.smugCategoriesTree[categoryIndex], "SubCategories" )>
								<cfloop from="1" to="#ArrayLen( Request.smugCategoriesTree[categoryIndex].SubCategories )#" index="subcategoryIndex">
									<li class="closed">
										<span class="folder">
											<input type="radio" name="catid_subcatid" id="#Request.smugCategoriesTree[categoryIndex].CategoryID#-#Request.smugCategoriesTree[categoryIndex].SubCategories[subcategoryIndex].SubCategoryID#" value="#Request.smugCategoriesTree[categoryIndex].CategoryID#-#Request.smugCategoriesTree[categoryIndex].SubCategories[subcategoryIndex].SubCategoryID#">
											<label for="#Request.smugCategoriesTree[categoryIndex].CategoryID#-#Request.smugCategoriesTree[categoryIndex].SubCategories[subcategoryIndex].SubCategoryID#">
												#Request.smugCategoriesTree[categoryIndex].SubCategories[subcategoryIndex].SubCategoryName#
											</label>
										</span>
									</li>
								</cfloop>
							</cfif>
						</ul>
					</li>
				</cfloop>
			</ul>
		</fieldset>
	</fieldset>
</cfoutput>